package com.lian.service.impl;

import com.lian.dao.impl.workdaoimpl;
import com.lian.dao.workdao;
import com.lian.entity.work;
import com.lian.service.workservice;

import java.util.List;

/**
 * Created by lenovo on 2018/8/6.
 */
public class workserviceimpl implements workservice

{
    workdao dao=new workdaoimpl();

    @Override
    public int addwork(work wo) {
        return dao.addwork(wo);
    }

    @Override
    public int updwork(work wo) {
        return dao.updwork(wo);
    }

    @Override
    public int delwork(int workid) {
        return dao.delwork(workid);
    }

    @Override
    public work findworkid(int workid) {
        return dao.findworkid(workid);
    }

    @Override
    public List<work> findwork(int page, int size) {
        return dao.findwork(page, size);
    }

    @Override
    public int findCount() {
        return dao.findCount();
    }
}
